package com.cqie.rbac.service;

import com.cqie.rbac.bo.DepartmentBo;
import com.cqie.rbac.entity.Department;
import com.baomidou.mybatisplus.extension.service.IService;
import com.cqie.rbac.util.Result;

import java.util.List;

/**
 * <p>
 * 学院表 服务类
 * </p>
 *
 * @author 单机吧
 * @since 2021-10-08
 */
public interface IDepartmentService extends IService<Department> {

    //查询学院父节点
    List<Department> DepartmentTree();

    //查询学院子节点
    void DepartmentChildren(Department department);

    //根据id获取院系名称
    Department GetDepartmentNameById(Long id);

    //编辑或新增学院信息
    Result UpdateOrAddMenu(DepartmentBo bo);
}
